'Declaration
<ExtensionAttribute()> <NotNullAttribute()> Public Overloads Shared Function GetItemPropertyRecord( _ ByVal client As IEasyDAClient, _ ByVal machineName As String, _ ByVal serverClass As String, _ ByVal itemId As String, _ ByVal propertyIds As IEnumerable(Of DAPropertyId), _ ByVal allowFailures As Boolean _ ) As DAItemPropertyRecord
'Usage
Dim client As IEasyDAClient Dim machineName As String Dim serverClass As String Dim itemId As String Dim propertyIds As IEnumerable(Of DAPropertyId) Dim allowFailures As Boolean Dim value As DAItemPropertyRecord value = IEasyDAClientExtension2.GetItemPropertyRecord(client, machineName, serverClass, itemId, propertyIds, allowFailures)
[Extension()] [NotNull()] public static DAItemPropertyRecord GetItemPropertyRecord( IEasyDAClient client, string machineName, string serverClass, string itemId, IEnumerable<DAPropertyId> propertyIds, bool allowFailures )
[Extension()] [NotNull()] public: static DAItemPropertyRecord^ GetItemPropertyRecord( IEasyDAClient^ client, String^ machineName, String^ serverClass, String^ itemId, IEnumerable<DAPropertyId^>^ propertyIds, bool allowFailures )
Parameters
- client
- The client object that will perform the operation.
- machineName
- Name of the machine. Determines the computer on which the OPC server is located. May be an empty string, in which case the OPC server is assumed to exist on the local computer or at the computer specified for it by DCOM configuration.
- serverClass
- Contains ProgID of the OPC server to read from.
- itemId
- Contains OPC item identifier.
- propertyIds
- Specifies which OPC properties should be obtained and returned.
- allowFailures
- If false, any failures cause the method to throw an exception. If true, failures are ignored, and the affected OPC properties will contain default values.
Return Value
Returns a structure containing the OPC property values requested.